<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<pe:mcml>
<script type="text/npl" src="TerrainBrushTask.lua" refresh="true">
<![CDATA[
TerrainBrushTask = commonlib.gettable("MyCompany.Aries.Game.Tasks.TerrainBrushTask");
TerrainBrushTask.InitPage(Page);
task = TerrainBrushTask.GetInstance();
]]>
</script>
<div style="padding:5px;background-color:#808080;color:#ffffff">
    <pe:repeat value="tool in TerrainBrushTask.GetTools()">
        <span style='<%=tool.name==task:GetToolName() and "background-color:#008000" %>'>
            <input uiname='<%="TerrainBrushTask."..tool.name%>' name='<%=tool.name%>' tooltip='<%=tool.tooltip%>' type="button" onclick="TerrainBrushTask.OnClickTool"
                   style='<%=format("float:left;padding:5px;width:32px;height:32px;background:url(%s);", tool.icon)%>' />
        </span>
    </pe:repeat>
    <div>
        <input type="text" name="strength" tooltip='<%=L"笔刷强度(0,1]"%>' value='<%=tostring(task:GetBrushStrength())%>' style="width:32px;" onchange="task.OnChangeStrength" />
    </div>
</div>
</pe:mcml>
</html>

